<template>
  <el-dialog v-el-drag-dialog append-to-body :close-on-click-modal="false" v-bind="$attrs" v-on="$listeners">
    使用： v-bind="$attrs" v-on="$listeners" 进一步封装组件
    <span slot="footer" class="dialog-footer">
      <el-button :loading="loading" size="small" @click="close">取 消</el-button>
      <el-button :loading="loading" size="small" type="primary" @click="close">确 定</el-button>
    </span>
  </el-dialog>
</template>
<script>
export default {
  name: 'BaseDialog',
  data () {
    return {
      loading: false
    }
  },
  mounted () {
  },
  methods: {
    close () {
      this.$emit('update:visible', false)
    },
  }
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
</style>
